\hypertarget{class_location}{
\section{Location Class Reference}
\label{class_location}\index{Location@{Location}}
}


{\ttfamily \#include $<$Location.h$>$}

Inheritance diagram for Location:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_location}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_location_a123277c03c4b556d78b7272b1019686e}{Location} (int id, int coordX, int coordY)
\item 
virtual \hyperlink{class_location_af5be2c6550bbd96137cbb3144ec3c529}{$\sim$Location} ()
\item 
int \hyperlink{class_location_a1426b47d62e2879708629ebc4f267057}{getId} ()
\item 
int \hyperlink{class_location_a507fa68d18abb8b2dee9cdc09a5fee53}{getCoordX} ()
\item 
int \hyperlink{class_location_a8cb90d5acde566b2bc805652497752be}{getCoordY} ()
\item 
int \hyperlink{class_location_a1854c092ef060ee738881ce84417bdae}{getType} ()
\item 
bool \hyperlink{class_location_a5879ccf4f1165e051b3c012a3cb6c0f1}{getVisited} ()
\item 
void \hyperlink{class_location_a1260f95adbcb96fbe578366a3035746d}{setType} (int type)
\item 
void \hyperlink{class_location_ab0407db3d8e30ee103a136cef8809a80}{setVisited} (bool visited)
\item 
vector$<$ \hyperlink{class_pipe}{Pipe} $\ast$ $>$ $\ast$ \hyperlink{class_location_ad850fbedf3229246c72fdfc7624da954}{getConnectedPipes} ()
\item 
vector$<$ \hyperlink{class_pipe}{Pipe} $\ast$ $>$ \hyperlink{class_location_a27229b286700ef20f4743c815005f48f}{getPipes} ()
\item 
bool \hyperlink{class_location_a2a9e1f9df5294d146b2f8533154da3ea}{removePipeTo} (\hyperlink{class_location}{Location} $\ast$dest)
\item 
void \hyperlink{class_location_a3830b280871c5e4ac27bec3ff8241934}{updatePipeFlow} (unsigned int index, int f)
\begin{DoxyCompactList}\small\item\em update \hyperlink{class_pipe}{Pipe} Flow \end{DoxyCompactList}\item 
int \hyperlink{class_location_a63952003f74c6692735bf89462ff58da}{getDistance} ()
\item 
int \hyperlink{class_location_ae71055b5b68590b8e066ef56ed4d4db0}{getPath} ()
\item 
void \hyperlink{class_location_a37f9a9921a674ad286e941f77af42988}{setPath} (int path)
\item 
void \hyperlink{class_location_ab6b0cec53d37ea12a5abe5fe14e743cd}{setDistance} (int distance)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
A node on the map (vertex of graph). id is read from the openstreetmaps information. coordX and coordY are geographical data converted in values usable on the graphviewer. connectedPipes are the edges that connect this node to others on the graph. All the other information are needed for the algorithms. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_location_a123277c03c4b556d78b7272b1019686e}{
\index{Location@{Location}!Location@{Location}}
\index{Location@{Location}!Location@{Location}}
\subsubsection[{Location}]{\setlength{\rightskip}{0pt plus 5cm}Location::Location (
\begin{DoxyParamCaption}
\item[{int}]{id, }
\item[{int}]{coordX, }
\item[{int}]{coordY}
\end{DoxyParamCaption}
)}}
\label{class_location_a123277c03c4b556d78b7272b1019686e}
Constructor, adds deault values too. id is used to identify the node on all data structures. coordX and coordY are already converted in values usable on graphviewer. \hypertarget{class_location_af5be2c6550bbd96137cbb3144ec3c529}{
\index{Location@{Location}!$\sim$Location@{$\sim$Location}}
\index{$\sim$Location@{$\sim$Location}!Location@{Location}}
\subsubsection[{$\sim$Location}]{\setlength{\rightskip}{0pt plus 5cm}Location::$\sim$Location (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_location_af5be2c6550bbd96137cbb3144ec3c529}
Normal destrutor. 

\subsection{Member Function Documentation}
\hypertarget{class_location_ad850fbedf3229246c72fdfc7624da954}{
\index{Location@{Location}!getConnectedPipes@{getConnectedPipes}}
\index{getConnectedPipes@{getConnectedPipes}!Location@{Location}}
\subsubsection[{getConnectedPipes}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Pipe} $\ast$ $>$ $\ast$ Location::getConnectedPipes (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_ad850fbedf3229246c72fdfc7624da954}
\hypertarget{class_location_a507fa68d18abb8b2dee9cdc09a5fee53}{
\index{Location@{Location}!getCoordX@{getCoordX}}
\index{getCoordX@{getCoordX}!Location@{Location}}
\subsubsection[{getCoordX}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getCoordX (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a507fa68d18abb8b2dee9cdc09a5fee53}
\hypertarget{class_location_a8cb90d5acde566b2bc805652497752be}{
\index{Location@{Location}!getCoordY@{getCoordY}}
\index{getCoordY@{getCoordY}!Location@{Location}}
\subsubsection[{getCoordY}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getCoordY (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a8cb90d5acde566b2bc805652497752be}
\hypertarget{class_location_a63952003f74c6692735bf89462ff58da}{
\index{Location@{Location}!getDistance@{getDistance}}
\index{getDistance@{getDistance}!Location@{Location}}
\subsubsection[{getDistance}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getDistance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a63952003f74c6692735bf89462ff58da}
\hypertarget{class_location_a1426b47d62e2879708629ebc4f267057}{
\index{Location@{Location}!getId@{getId}}
\index{getId@{getId}!Location@{Location}}
\subsubsection[{getId}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getId (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a1426b47d62e2879708629ebc4f267057}
\hypertarget{class_location_ae71055b5b68590b8e066ef56ed4d4db0}{
\index{Location@{Location}!getPath@{getPath}}
\index{getPath@{getPath}!Location@{Location}}
\subsubsection[{getPath}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getPath (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_ae71055b5b68590b8e066ef56ed4d4db0}
\hypertarget{class_location_a27229b286700ef20f4743c815005f48f}{
\index{Location@{Location}!getPipes@{getPipes}}
\index{getPipes@{getPipes}!Location@{Location}}
\subsubsection[{getPipes}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$ {\bf Pipe} $\ast$ $>$ Location::getPipes (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a27229b286700ef20f4743c815005f48f}
Should not be used. \hypertarget{class_location_a1854c092ef060ee738881ce84417bdae}{
\index{Location@{Location}!getType@{getType}}
\index{getType@{getType}!Location@{Location}}
\subsubsection[{getType}]{\setlength{\rightskip}{0pt plus 5cm}int Location::getType (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a1854c092ef060ee738881ce84417bdae}
\hypertarget{class_location_a5879ccf4f1165e051b3c012a3cb6c0f1}{
\index{Location@{Location}!getVisited@{getVisited}}
\index{getVisited@{getVisited}!Location@{Location}}
\subsubsection[{getVisited}]{\setlength{\rightskip}{0pt plus 5cm}bool Location::getVisited (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_location_a5879ccf4f1165e051b3c012a3cb6c0f1}
\hypertarget{class_location_a2a9e1f9df5294d146b2f8533154da3ea}{
\index{Location@{Location}!removePipeTo@{removePipeTo}}
\index{removePipeTo@{removePipeTo}!Location@{Location}}
\subsubsection[{removePipeTo}]{\setlength{\rightskip}{0pt plus 5cm}bool Location::removePipeTo (
\begin{DoxyParamCaption}
\item[{{\bf Location} $\ast$}]{dest}
\end{DoxyParamCaption}
)}}
\label{class_location_a2a9e1f9df5294d146b2f8533154da3ea}
Method used to remove all pipes leading to this node. Useful when a node is deleted. \hypertarget{class_location_ab6b0cec53d37ea12a5abe5fe14e743cd}{
\index{Location@{Location}!setDistance@{setDistance}}
\index{setDistance@{setDistance}!Location@{Location}}
\subsubsection[{setDistance}]{\setlength{\rightskip}{0pt plus 5cm}void Location::setDistance (
\begin{DoxyParamCaption}
\item[{int}]{distance}
\end{DoxyParamCaption}
)}}
\label{class_location_ab6b0cec53d37ea12a5abe5fe14e743cd}
\hypertarget{class_location_a37f9a9921a674ad286e941f77af42988}{
\index{Location@{Location}!setPath@{setPath}}
\index{setPath@{setPath}!Location@{Location}}
\subsubsection[{setPath}]{\setlength{\rightskip}{0pt plus 5cm}void Location::setPath (
\begin{DoxyParamCaption}
\item[{int}]{path}
\end{DoxyParamCaption}
)}}
\label{class_location_a37f9a9921a674ad286e941f77af42988}
\hypertarget{class_location_a1260f95adbcb96fbe578366a3035746d}{
\index{Location@{Location}!setType@{setType}}
\index{setType@{setType}!Location@{Location}}
\subsubsection[{setType}]{\setlength{\rightskip}{0pt plus 5cm}void Location::setType (
\begin{DoxyParamCaption}
\item[{int}]{type}
\end{DoxyParamCaption}
)}}
\label{class_location_a1260f95adbcb96fbe578366a3035746d}
\hypertarget{class_location_ab0407db3d8e30ee103a136cef8809a80}{
\index{Location@{Location}!setVisited@{setVisited}}
\index{setVisited@{setVisited}!Location@{Location}}
\subsubsection[{setVisited}]{\setlength{\rightskip}{0pt plus 5cm}void Location::setVisited (
\begin{DoxyParamCaption}
\item[{bool}]{visited}
\end{DoxyParamCaption}
)}}
\label{class_location_ab0407db3d8e30ee103a136cef8809a80}
\hypertarget{class_location_a3830b280871c5e4ac27bec3ff8241934}{
\index{Location@{Location}!updatePipeFlow@{updatePipeFlow}}
\index{updatePipeFlow@{updatePipeFlow}!Location@{Location}}
\subsubsection[{updatePipeFlow}]{\setlength{\rightskip}{0pt plus 5cm}void Location::updatePipeFlow (
\begin{DoxyParamCaption}
\item[{unsigned int}]{index, }
\item[{int}]{f}
\end{DoxyParamCaption}
)}}
\label{class_location_a3830b280871c5e4ac27bec3ff8241934}


update \hyperlink{class_pipe}{Pipe} Flow 



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_location_8h}{Location.h}\item 
C:/Users/Paulo/git/cal2012t4/water/src/\hyperlink{_location_8cpp}{Location.cpp}\end{DoxyCompactItemize}
